package io.gitee.zhangbinhub.admin.log.mapper;

import io.gitee.zhangbinhub.admin.log.entity.OperateLog;
import io.gitee.zhangbinhub.admin.log.entity.OperateLogHistory;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OperateLogMapper {
    OperateLogMapper INSTANCE = Mappers.getMapper(OperateLogMapper.class);

    OperateLogHistory toHistory(OperateLog log);
}
